package com.mymall.serve.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;


@ApiModel(value = "为用户分配角色条件")
@Data
@EqualsAndHashCode(callSuper = false)
public class RoleUserParam implements Serializable {

    @ApiModelProperty(value = "用户ID")
    @NotNull(message = "用户id不可为空")
    private List<Long> userIds;

    @ApiModelProperty(value = "角色ID")
    private List<Long> roleIds;
}
